#include "head.h"

const char*a="|/-\\";
void pbar()
{
char bar[NUM];
memset(bar,'\0',sizeof(bar));

int len=strlen(a);
int i=0;
while(i<=100)
{
printf("[%-100s][%d%%]%c\r",bar,i,a[i%len]);
fflush(stdout);
bar[i++]=style;
usleep(100000);
}
printf("\n");
}
